package xyf.p11.other.bit;

/**
 * ClassName: M1601_SwapNumber
 * Description:
 * Author: xyf
 * Date: 9/9/22 10:12 AM
 * Version: 1.0
 **/
public class M1601_SwapNumber
{
    public int[] swapNumbers(int[] numbers)
    {
        numbers[0] = numbers[0] ^ numbers[1];
        numbers[1] = numbers[0] ^ numbers[1];
        numbers[0] = numbers[0] ^ numbers[1];
        return numbers;
    }
}
